package com.zoe.bean;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @Author Zoe
 * @Date: 2020/11/21
 * @Description
 */
@Component
public class Dog {
    @PostConstruct
    public void init() {
        System.out.println("dog初始化");
    }

    @PreDestroy
    public void destroy() {
        System.out.println("dog被销毁");
    }
}
